home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / JForth / Textra120 / Docs / Textra.doc < prev    next >
Encoding:
Text File  |  1997-08-16  |  51.0 KB  |  1,169 lines

  1.  
  2.          NOTE: Textra 1.17 requires Workbench 2.0 or later.
  3.    
  4.    This document describes TEXTRA, a very user-friendly text editor.  So 
  5. user-friendly, I hope, that you could use it without reading a manual.  
  6. Good learning philosophy: play with it.  One of the easiest, that's the 
  7. goal.
  8.  
  9.    TEXTRA is SHAREWARE.  For $25.00, you'll receive a personalized 
  10. executable that does not contain the startup-delay screens that 
  11. are in the otherwise-identical UN-registered version.
  12.  
  13.    The UN-registered version is freely-distributable.  However, please 
  14. insure that the unaltered 'doc' files & rexx scripts accompany the 
  15. executable if you do pass it around.
  16.  
  17.    If you are using TEXTRA to read this file, just Press F4 to view the 
  18. next page.  F5 to review the previous page.
  19.  
  20. 26-Apr-89 v1.01 executable size 60148
  21. 29-May-89 v1.02   "    "    "   60864
  22. 22-Jul-89 v1.03   "    "    "   61080
  23. 21-Oct-89 v1.04   "    "    "   65208
  24. 05-Jan-90 v1.05   "    "    "   69836
  25. 18-Feb-90 v1.06   "    "    "   69400
  26. 18-Apr-90 v1.07   "    "    "   70520
  27. 06-Jun-90 v1.08   "    "    "   71544
  28. 15-Dec-90 v1.09   "    "    "   79404
  29. 26-Aug-91 v1.10   "    "    "   98976 ARexx, horiz scroll bar, help kbd
  30. 23-Oct-91 v1.11   "    "    "  100500 WB2.0 graphics, fix GET CURSOR CHAR
  31. 16-Mar-92 v1.12   "    "    "  111280 Undo, SmartLaunch, 1st shareware
  32. 10-Jan-93 v1.13   "    "    "  129252 Fonts, Multi-Processing, lots more
  33. 29-May-93 v1.14   "    "    "  137260 -- v1.14 Status Line, User-define kybd
  34. 20-Jan-94 v1.15   "    "    "  155088 -- v1.15 Marks, SAS/C interoperability
  35. 04-Jan-95 v1.16   "    "    "  164144 -- v1.16 Columnar Cut/Pst, C= Installer
  36.           v1.17                       -- Auto-formatting margins
  37.           v1.18                       -- bug fix release
  38.           v1.19                       -- bug fix release
  39.           v1.20                       -- FREE version, remove delay screens
  40.  
  41.  
  42. (see the 'WhatsNew.doc' file for better history/features information)
  43. ---------------------------------------------------------------------------
  44.  
  45.  
  46.               T A B L E     O F     C O N T E N T S
  47.              ---------------------------------------
  48.  
  49. Suggestions for manuevering in this file...
  50.  
  51.    o  If using Textra 1.15 or later to read this, pull down the
  52.       "Utilities, Go To Mark..." menu item.  (If disabled,
  53.       you are missing a file called "}Textra.doc").
  54.    
  55.    o  In any version of Textra...
  56.    
  57.       1. Double-click on the section number ( for example, 10.4.8 )
  58.       2. "Find" it by using Right-Amiga-F (press RETURN in the requester)
  59.       3. If necessary, use Right-Amiga-N (Find Next) to locate the next
  60.          occurence of the same text (most likely a cross-reference).
  61.  
  62.  
  63. 1.  INSTALLING TEXTRA
  64.     1.1  The Textra Package
  65.          1.1.1 The Program and Icon
  66.          1.1.2 The ARexx Scripts
  67.          1.1.3 The Documentation
  68.     1.2  The Commodore-compatible Installation Script
  69.     1.3  The Proprietary Installation Program
  70.  
  71. 2.  INVOKING TEXTRA
  72.     2.1  General
  73.     2.2  Invoking from Workbench
  74.     2.3  Invoking from CLI or SHELL
  75.     2.4  TEXTRA as the Default Tool for "Project"-type icons
  76.     2.5  Launching more than once.
  77.     2.6  Automatic gadget imagery selection
  78.  
  79. 3.  THE TEXTRA CURSOR
  80.     3.1  Cursor appearance
  81.     3.2  Positioning the cursor with the mouse
  82.     3.3  Positioning the cursor with the keyboard arrow keys
  83.     3.4  Quickly finding the cursor (function key F3)
  84.  
  85. 4.  ENTERING TEXT INTO THE DOCUMENT
  86.     4.1  Inserting text at the cursor location
  87.     4.2  The RETURN key
  88.          4.2.1  The "Auto-Indent" mode
  89.     4.3  The BACKSPACE key
  90.          4.3.1  The "Auto-BackSpace" mode
  91.     4.4  The DEL key
  92.     4.5  The TAB key
  93.     4.6  The control-key filter and defeat feature (Function key F2)
  94.     4.7  The HELP key
  95.  
  96. 5.  SELECTING A RANGE OF TEXT
  97.     5.1  Using the mouse to select a range of characters
  98.     5.2  Selecting text by double and triple clicking
  99.          5.2.1 Double-Clicking Alphanumeric strings and options
  100.     5.3  Operations on selected ranges
  101.     5.4  Selecting more than the visible screen
  102.     5.5  Extending a select range by SHIFT-clicking
  103.     5.6  Identifying balanced parenthesis or brackets
  104.     5.7  Establishing a COLUMNAR selection for Cut or Copy.
  105.  
  106. 6.  VIEWING PAGES
  107.     6.1  The vertical scroll arrow gadgets
  108.     6.2  The vertical scroll thumb gadget
  109.     6.3  Scrolling the page with the keyboard arrow keys
  110.     6.4  Keys that PAGE-up or PAGE-down
  111.     6.5  The horizontal scroll gadget
  112.  
  113. 7.  TEXTRA WINDOWS
  114.     7.1  Limitations
  115.     7.2  The title bar
  116.          7.2.1 The optional Status Line
  117.     7.3  The close gadget
  118.     7.4  The sizing gadget
  119.     7.5  The Window-Size-Toggle feature (Function key F1)
  120.     7.6  The 'Previous Window' feature (Function key F6)
  121.     7.7  The Window's font
  122.  
  123. 8.  THE TEXTRA AREXX INTERFACE  ("TREXXTRA" -- hoo boy!)
  124.     8.1  General AREXX Information
  125.     8.2  Executing TEXTRA/AREXX Scripts or Commands
  126.     8.3  Running scripts in the background
  127.     8.4  Writing Your Own TEXTRA/AREXX scripts
  128.     8.5  The TEXTRA "Tutorial" ARexx script
  129.     8.6  Aborting TEXTRA-ARexx Scripts
  130.     8.7  User-definable keyboard via the CTRL key
  131.  
  132. 9. THE MARKS FACILITY
  133.     9.1  General Description
  134.     9.2  Accessing the MARKS facility
  135.     9.3  How MARKS info is stored
  136.     9.4  Special "MARK"-ed file considerations
  137.          9.4.1  Copying MARK-ed files
  138.          9.4.2  Maximum MARKed-file name length
  139.  
  140. 10.  TEXTRA MENUS
  141.     10.1  Accessing the menus
  142.     10.2  The "Project" menu
  143.          10.2.1  Open A File...
  144.          10.2.2  Open By Name...
  145.          10.2.3  New File
  146.          10.2.4  Insert File...
  147.          10.2.5  Revert To Saved
  148.          10.2.6  Save File
  149.          10.2.7  Save File As...
  150.          10.2.8  Save All Files
  151.          10.2.9  Close File
  152.          10.2.10 Print File
  153.          10.2.11 Print Selected Lines
  154.          10.2.12 Printing Preferences...
  155.          10.2.13 About TEXTRA...
  156.          10.2.14 Quit
  157.     10.3  The "Windows" menu
  158.          10.3.1  Dynamically-changing items
  159.          10.3.2  Additional information
  160.     10.4  The "Edit" menu
  161.          10.4.1  Undo
  162.          10.4.2  Cut
  163.          10.4.3  Copy
  164.          10.4.4  Paste
  165.                 10.4.4.1  Performing a Columnar Paste
  166.          10.4.5  Find
  167.                 10.4.5.1  String...
  168.                          10.4.5.1.1 Wrap-around search option
  169.                          10.4.5.1.2 Reverse search option
  170.                 10.4.5.2  Next Occurence
  171.          10.4.6  Replace
  172.                 10.4.6.1  String...
  173.                 10.4.6.2  Next Occurence
  174.                 10.4.6.3  Then Find
  175.          10.4.7  Case
  176.                 10.4.7.1  lower
  177.                 10.4.7.2  UPPER
  178.                 10.4.7.3  Capitalize
  179.          10.4.8  Go to Line...
  180.          10.4.9  Editing Preferences...
  181.          10.4.10 Activate Margins...
  182.     10.5  The "Utilities" menu
  183.          10.5.1  File Protections...
  184.          10.5.2  Write-Protect/Enable Window
  185.          10.5.3  Help on Keyboard...
  186.          10.5.4  ARexx...
  187.          10.5.5  Set Window Font...
  188.          10.5.6  Font Preferences...
  189.          10.5.7  Mark Selected Text......
  190.          10.5.8  Go To Mark...
  191.          10.5.9  Delete Mark...
  192.          
  193. 11.  TEXTRA GENERAL INFORMATION
  194.     11.1  TEXTRA's use of Path and File names
  195.     11.2  TEXTRA String Gadget Shortcuts
  196.     11.3  TEXTRA String Gadgets and the RETURN key
  197.     11.4  TEXTRA Requesters
  198.          11.4.1 Use of the Asl library
  199.          11.4.2 The Asl file requesters vs. Native TEXTRA file requesters
  200.     11.5  TEXTRA Preferences File
  201.     11.6  TEXTRA behavior when reading in files
  202.          11.6.1  MSDOS text format compatibility
  203.          11.6.2  Checks file type when reading in a file.
  204.     11.7  Operation under low-memory conditions
  205.     11.8  TEXTRA Keyboard Summary
  206.  
  207. ---------------------------------------------------------------------------
  208.  
  209.  
  210. 1. INSTALLING TEXTRA
  211.  
  212. 1.1 TEXTRA may be run without any installation at all.  The 
  213. installation procedure simply copies the program and a set of support 
  214. files (none required) to your hard disk.
  215.  
  216. 1.1.1 The program and icon file are supplied at the root of the 
  217. installation package.  They may be used to view any and all 
  218. documentation.  All supplied text files default tool fields point to 
  219. this TEXTRA.
  220.  
  221. 1.1.2 The TEXTRA package includes a variety of macro files, executable 
  222. under its powerful ARexx interface.  General page/paragraph-formatting 
  223. macros, useful utilities, and scripts that allow TEXTRA to act as an 
  224. integrated editing environment for JForth Professional, HSPascal and
  225. SAS/C are provided.
  226.  
  227. 1.1.3 The accompanying documentation, of which this is a part of, is 
  228. detailed and complete.  It includes separate files covering Textra as 
  229. editing environment, its ARexx interface and command set, detailed 
  230. version history, and list of known gotchas.
  231.  
  232. 1.2 The package provides a script for the standard Amiga 
  233. installation program with icon that will prompt the user through the 
  234. installation process.  When the installer prompts for a destination 
  235. location for anything, it will create the specified directory, if it 
  236. doesn't already exist.
  237.  
  238. 1.3 If the user does not have the Amiga Installer program, a
  239. proprietary one is provided.  To use, do the following:
  240.  
  241.     1. Open the 'Scripts' drawer
  242.     2. Drag the 'Install_Textra' icon out of the 'Scripts' drawer,
  243.        placing it at the same level as the 'Textra' program.
  244.     3. Double-Click on the 'Install_Textra' icon and follow the
  245.        instructions.
  246.  
  247. ---------------------------------------------------------------------------
  248.  
  249.  
  250. 2. INVOKING TEXTRA
  251.  
  252. 2.1 TEXTRA may be launched from Workbench, Shell or ARexx.
  253.  
  254. 2.2 When launched from Workbench (probably the most common means of 
  255. starting it), Extended-Selection mode is implemented to provide 
  256. opening a specific set of document icons.  For information about this 
  257. mode, refer to your Workbench manual.
  258.  
  259. 2.3 "TEXTRA" may be typed into the CLI or SHELL, with as many optional 
  260. filenames as the AmigaDOS command line will allow.  For example...
  261.  
  262.     1> RUN TEXTRA <filename1> <filename2> ... <filenameX>
  263.  
  264. Refer to section 2.5.1 for command-line options.
  265.  
  266. 2.4 A "Project" icon that has TEXTRA specified in its "Default Tool"
  267. field will invoke TEXTRA, when double-clicked, and be opened in its
  268. own window.
  269.  
  270. 2.5 Normally, TEXTRA will not launch twice.  If a TEXTRA B is launched 
  271. and finds TEXTRA A already running, B will send to A the names of the 
  272. files that B was passed via the mechanisms described above in sections 
  273. 2.2, 2.3 or 2.4.  TEXTRA B will then exit.  This feature allows users 
  274. to "get that file open" in the whatever means is most convienient.  
  275. (Note that enough memory must be available for TEXTRA B and TEXTRA A 
  276. to momentarily reside in the machine.  Also, ARexx must be running for 
  277. 'Smartlaunch' to work.)
  278.  
  279. 2.5.1  To satisfy the "keep-control-until-finished-editing" 
  280. expectations of some external programs such as mail readers, Textra 
  281. 1.15 introduced both an Rexx command as well as a command-line option.  
  282. If one configures their mail reader to launch Textra using
  283. either of the 2 following forms...
  284.  
  285.     run Textra -wait <filename>
  286.  
  287. ...or...
  288.  
  289.     rx 'address TEXTRA "OpenFileWait <filename>"'
  290.  
  291. ...Textra will not return control to the calling program until the
  292. window for <filename> is closed.  See RexxCommand.doc for more info
  293. on the OpenFileWait ARexx command.
  294.  
  295. Note that the latter form (the use of the rx command) is recommended
  296. as the former actually runs another copy of Textra for as long as the
  297. editing session is active.  Also, note that ARexx is required for either
  298. method.
  299.  
  300. 2.6 At startup, TEXTRA checks the relative average color intensities 
  301. of the active intuition screen and if same as wb 2.0+, (color1 
  302. darkest, color0 medium, color2 brightest), it will use shaded gadgets 
  303. and 2.0-style checkbox imagery.
  304.  
  305. If the colors are not found suitable for shadowing, TEXTRA will render 
  306. its requester and gadget imagery primarily in monochrome (colors 0 
  307. and 1).  Boolean gadgets (checkboxes) are also rendered differently.
  308.  
  309. ---------------------------------------------------------------------------
  310.  
  311.  
  312. 3. THE TEXTRA CURSOR
  313.  
  314. 3.1 The current cursor location (where text will be inserted) is
  315. represented by a thin line, of a different color than either text
  316. or background.  The cursor marks the place where newly-typed
  317. characters will be inserted (characters following will 'shift right')
  318. or backspace or forward delections will occur.
  319.  
  320. 3.2 The cursor may be positioned by simply single-clicking the LEFT MOUSE
  321. BUTTON on the text where you want the cursor to be.
  322.  
  323. 3.3 The cursor may also be moved with the "arrow" keys on the keyboard.
  324. A SHIFT-left-arrow or SHIFT-right-arrow will move the cursor to the
  325. beginning or end of the current line, respectively.
  326.  
  327. 3.4 If the cursor or select range is not on the visible part of the
  328. screen, it can be quickly located and displayed via the F3 key.
  329.  
  330. ---------------------------------------------------------------------------
  331.  
  332.  
  333. 4. ENTERING TEXT INTO THE DOCUMENT
  334.  
  335. 4.1 As text keys are typed at the keyboard, they are entered in the file
  336. at the current cursor location, and the cursor is advanced by one.
  337.  
  338. 4.2 The RETURN key inserts a new line, and moves the cursor there.
  339.  
  340. 4.2.1 If the Auto-Indent mode is enabled (see section 10.4.9), the
  341. cursor will align with the line above when the RETURN key is pressed.
  342.  
  343. 4.3 The BACKSPACE deletes the character to the immediate left of the
  344. cursor and backs the cursor up one column.  If the cursor is at the
  345. leftmost column, the line is joined with the previous one.
  346.  
  347. 4.3.1 When the cursor rests on the 1st non-blank character of a line, 
  348. the Auto-BackSpace mode (section 10.4.9) comes into play, if enabled.  
  349. The BACKSPACE key will"back-up" the line text by whatever it takes to 
  350. line up with the beginning of the text on the line above.  If the 
  351. previous line does not start to the left of the cursor position, the 
  352. alignment is made to the next line above that does.
  353.  
  354. 4.4 The DELETE key removes the character to the immediate right of the
  355. cursor.  If the cursor is at the end of a line, the next line is joined with
  356. the cursor line.
  357.  
  358. 4.5 The TAB key advances the cursor to the next column that is an
  359. even multiple of the TAB width value (section 10.4.9).
  360.  
  361. 4.6 Normally, the TEXTRA CTRL key, when used with alphabetic keys (a-z and 
  362. A-Z), is used to execute user-definable ARexx scripts (see section 8.7).  
  363. This feature can be temporarily defeated, for 1 character, by pressing 
  364. F2.  Following F2, the next character will be accepted into the window 
  365. as the appropriate ASCII control-code.
  366.  
  367. 4.7 The HELP key will display an informational requestor, displaying
  368. information about the keyboard-activated functions.  The HELP key
  369. can also be user-defined (see section 8.7).
  370.  
  371. ---------------------------------------------------------------------------
  372.  
  373.  
  374. 5. SELECTING A RANGE OF TEXT
  375.  
  376. 5.1 It is possible to mark a series of characters for the next
  377. operation by "dragging" with the mouse.  Just press and hold the
  378. left mouse button, then drag to the desired selection end-point.
  379.  
  380. 5.2 A series of characters will become selected when the LEFT MOUSE 
  381. BUTTON is double-clicked while the mouse cursor is positioned over 
  382. them.  Based on the setting of the EDITING PREFERENCES (section 
  383. 10.4.9), the series will consist of either contiguous non-white-space 
  384. or aplha-numeric characters.  If the LEFT MOUSE BUTTON is 
  385. triple-clicked, that entire line will become selected.
  386.  
  387. 5.2.1 When the Alpha-Numeric mode is selected, up to 16 non-
  388. alphanumerics may specified in the accompanying string gadget.
  389. For example, if you enter an underscore '_' in this string gadget,
  390. then alpha-numeric double-clicks will select right through that
  391. character as though it were an alpha-numeric.
  392.  
  393. 5.3 When a range of text is selected, a subsequent operation will
  394. affect the entire selected area.  For example, if a key is typed while
  395. a range is selected, that text will be cut from the file, replaced by
  396. that key.  Other examples are the BACKSPACE and DEL keys, which both
  397. act to simply delete any selected area.  Certain items under the EDIT
  398. menu, described later, as well as many of the provided ARexx scripts
  399. also operate on the current selection.
  400.  
  401. 5.4 If, while selecting text, the mouse is moved near the bottom or top
  402. of the window, available text in the appropriate direction will scroll
  403. into view, becoming selected in the process.  Therefore, a select range
  404. can extend past the visible limits of the window.
  405.  
  406. 5.5 A select range may be established or size changed by holding
  407. down the SHIFT key when clicking in the window.  If the click occurs
  408. outside the current select range, the range is extended to there.
  409. If inside, the end-point of the select range is adjusted to the
  410. click-point.
  411.  
  412. 5.6 If you double click on any of these characters... ( ) < > [ ] { } 
  413. Textra will search through the file in the appropriate direction for a 
  414. "balanced match" and it (handles (nested (substrings))).  This is 
  415. great for example, when programming C and you want to see everything 
  416. that the { you're staring at encompasses.  Textra will highlight 
  417. everything forward to the balancing } character.
  418.  
  419. Note that you can also find corresponding double-quote characters 
  420. "like around this", but TEXTRA assumes you are clicking on the LEADING 
  421. double-quote.  (In other words, it will only conduct a forward search 
  422. for a corresponding double-quote).
  423.  
  424. 5.7 Drag-select a columnar range - Hold down the ALT key just before you
  425. begin to to drag-select and the area will be selected columnarly.  When 
  426. you finish the drag-select (let the mouse button up), the select range 
  427. will change to a "square"  Most usually, you will then Cut or Copy the 
  428. area into the clipboard, in preparation for doing a columnar Paste 
  429. (section 10.4.4.1) in another location or window.  A columnar select, 
  430. however, can also be deleted, replaced, etc...  just like a normal 
  431. select range.
  432.    
  433. NOTE: When drag-selecting a columnar range, the finally-selected 
  434. "square" can extend past the end-of-lines.  If a "copy" of the 
  435. selected text is performed, such "short" lines will be padded with 
  436. blanks in the clipboard data such that all lines are the same length.
  437.    
  438. Caveats...
  439.       
  440. In this version, the ALT key and the mouse are the only 
  441. interface to establishing and working with columnar ranges.  In other 
  442. words, there is no ARexx command for "holding down the ALT key", and 
  443. one MUST use the mouse with the ALT key for creating columnar selections.
  444.  
  445. ---------------------------------------------------------------------------
  446.  
  447.  
  448. 6. VIEWING PAGES
  449.  
  450. 6.1 The easiest method for moving through the file is to use the vertical
  451. scroll bar on the right side of the window.  Clicks of the left
  452. mouse button on the arrows at either end move the document vertically
  453. in continuous scroll fashion.
  454.  
  455. 6.2 The "thumb" in the middle of the scroll bar not only indicates the
  456. visible-page-area relative to the total-file-size (by its height),
  457. but also the position within the file (by its vertical positioning).
  458. It can also be "selected" with the left mouse button and moved as
  459. a "coarse adjust".  The area immediately above and below the "thumb"
  460. may be clicked with the left button as a "page-scroll" mechanism.
  461.  
  462. 6.3 Another method by which text may be scrolled into view is by moving
  463. the cursor...attempts to move the cursor "off the window"
  464. will cause text in that direction to scroll.
  465.  
  466. 6.4 Function keys F4 and F5 will PAGE the display down and up,
  467. respectively.  The Shift-UP/DOWN-arrow-key combinations will also PAGE
  468. the display in the appropriate direction AND position the cursor
  469. to the middle of the new page.
  470.  
  471. 6.5 The horizontal scroll gadget works similarly to the vertical
  472. scroll gadget.  It becomes functional when a line is being displayed
  473. that exceeds the current width of the window.  When typing, the display
  474. will auto-scroll to center the cursor when it reaches a window edge.
  475.  
  476. ---------------------------------------------------------------------------
  477.  
  478.  
  479. 7. TEXTRA WINDOWS
  480.  
  481. 7.1 TEXTRA allows any number of windows, limited by the amount of 
  482. memory in your computer (most limiting is possibly the amount of 
  483. available CHIP ram, at least in early amigas).  Textra lines can be 
  484. of any length and any number of lines, limited by your total 
  485. available memory (entire file is kept in ram, FAST is grabbed first).
  486.  
  487. 7.2 The title of each TEXTRA window is set to the full-pathname
  488. of the file that was read in (or created).  This is also the name
  489. of the file that will be written during a SAVE operation (unless
  490. the "SAVE FILE AS..." menu option is chosen, section 10.2.7).  If the
  491. file has been modified since last saved, the filename will be
  492. preceeded by a '*'.
  493.  
  494. 7.2.1 A Status Line may optionally be presented immediately below the 
  495. title bar.  It displays the current cursor location or select range in 
  496. column, line coordinates (zero-based).  It is also available to display
  497. text messages under control of the ARexx script interface.
  498.  
  499. 7.3 Each window includes a standard Intuition close gadget, which
  500. performs the same action as the "CLOSE FILE" menu option.  See the
  501. discussion on "CLOSE FILE" (section 10.2.9) for more information.
  502.  
  503. 7.4 The "sizing" gadget in the lower-right hand corner of each window
  504. may be used to adjust the dimensions of that window, up to the
  505. full-screen limitations of the Workbench.
  506.  
  507. 7.5 Function key F1 may be used as a "window-size-toggle" between
  508. default size (when F1 was first hit) and that size specified in the
  509. "Edit Preferences..." requester (10.4.9).  This preference setting
  510. defaults to full-screen.
  511.  
  512. 7.6 Function key F6 will re-select the previously-selected window.
  513. This a handy "toggle between 2 windows" mode, facilitating convienient
  514. evolutions such as successive Cut, Copy & Paste sequences (sections 10.4.2,
  515. 10.4.3 and 10.4.5).
  516.  
  517. 7.7 If the asl.library is available (usually means WB2.0 or later), 
  518. the font in which a window is initially rendered is configurable via 
  519. the "Font Preferences..." requester (10.5.6).  A windows font may be 
  520. changed at any time via the "Set Window Font..." asl requester 
  521. (10.5.5).
  522.  
  523. ---------------------------------------------------------------------------
  524.  
  525.  
  526. 8. THE TEXTRA-AREXX INTERFACE
  527.  
  528. 8.1 When TEXTRA starts up and finds AREXX available, it opens a 
  529. message port called "TEXTRA".  This port listens for AREXX messages 
  530. from other programs, and allows you to control the editor both from 
  531. other applications or from AREXX "scripts", many of which are supplied 
  532. with TEXTRA (they should be copied to your 'rexx:' directory).  These 
  533. scripts may contain a mixture of AREXX and TEXTRA commands; they allow 
  534. access to many internal TEXTRA editing functions which may be 
  535. performed on the 'current' window.
  536.    After opening the "TEXTRA" message port, it searches to see if
  537. a script called "Startup.textra" is available, and if so, executed.
  538. No such script is supplied with the package, the feature is available
  539. soley for user customization.
  540.    The AREXX menu item is dimmed if AREXX is not available when TEXTRA 
  541. is launched.
  542.  
  543. 8.2 TEXTRA/AREXX scripts or commands may be executed via the 
  544. "AREXX..." item in the Utilities menu (section 10.5).
  545.  
  546. The ARexx requester will be presented.  It contains ten string 
  547. gadgets, 8 with an accompanying button describing the function key to 
  548. execute the gadgets contents without having to bring up the requester.  
  549. Also, any string gadget may be executed by selecting it and pressing 
  550. ENTER.
  551.  
  552. Some string gadgets will assume default strings when initially 
  553. installed.  Gadget contents are executed and saved as separate, 
  554. independant operations.  If executed, the ARexx requester will close 
  555. before any ARexx commands are carried out.  The string gadget contents 
  556. are saved in "S:TEXTRA.CMDS" which is only as large as the length of 
  557. the strings plus an EOL character for each.  The CANCEL button allows 
  558. the requester to be closed and reverted to its original state upon 
  559. opening.
  560.  
  561. Into any string gadget, you can enter the name of a Textra-ARexx 
  562. script that exists in the rexx: directory (followed by any required 
  563. arguments), as in...
  564.  
  565.         slide 8
  566.  
  567. Optionally, you can directly enter ARexx and Textra commands into the 
  568. string gadgets, but they should be preceeded with an '@' character.  
  569. Examples...
  570.  
  571.         @notify "Hello world!"
  572.         @prefs autoindent on
  573.         @options results; get file name; notify result
  574.  
  575. 8.3 Normally, while a script is executing, another window may be made 
  576. frontmost and edited.  (It should be noted that some system global 
  577. resources, such as the cut, copy & paste buffer, are shared between 
  578. the script and the edited window.  While none of the supplied
  579. scripts use the CUT, COPY or PASTE commands, it is worth keeping in
  580. mind if you write your own.)
  581.  
  582. 8.4 Please refer to the accompanying file "RexxCommand.doc" for a
  583. description of the TEXTRA/AREXX command set as well as general
  584. information about writing your own scripts.
  585.  
  586. 8.5 Using section 8.2 as a guide, execute the "Tutorial" ARexx script
  587. for an interactive 'training session' for beginners.  In one of the
  588. ARexx requester string gadgets, simply enter:
  589.  
  590.         tutorial
  591.  
  592. 8.6 While an ARexx script is executing, the 'ARexx...' menu text 
  593. changes to "Cancel ARexx Script".  This menu item will try to tell the 
  594. running script that the user wishes it to terminate, but will only 
  595. have an effect if the running script "listens", i.e. it must use the 
  596. CHECKCANCEL Textra-ARexx command. All supplied scripts for which it is
  597. appropriate utilize the CHECKCANCEL command.
  598.  
  599. 8.7 By default, CTRL+any alphabetic key will execute an ARexx script 
  600. named after the key.  For example:  CTRL-A will look for and execute a 
  601. script called CTRLA.textra.  CTRL+HELP will try to run 
  602. CTRLhelp.textra.  EVERY ALPHABETIC KEY ON THE KEYBOARD IS THEREFORE 
  603. USER-DEFINABLE.
  604.    Note that only scripts which take no arguments may be used for
  605. CTRL scripts, but one can always pass arguments within the CTRL script
  606. to another script. 
  607.    No CTRL scripts have been supplied with the package; this feature
  608. is provided soley for user customization.  (Note: the v1.15 release
  609. added some CTRL scripts as part of the SAS/C integration.  See
  610. 'docs/SASC.ReadMe'.)
  611.  
  612. ---------------------------------------------------------------------------
  613.  
  614.  
  615. 9. THE MARKS FACILITY
  616.  
  617. 9.1 The MARKS facility allows you to assign any selected text to a 
  618. logical name of up to 31 chars long.  Any number of assignments can be 
  619. made.  Textra keeps the list for you on disk (more about how it is 
  620. stored below) ... this information is updated each time the file is 
  621. SAVE...'d or SAVE AS...'ed.
  622.  
  623.    IF YOU ADD/DELETE MARKS FROM A FILE, YOU MUST "SAVE..." OR "SAVE 
  624.    AS..." THE FILE FOR THE CHANGES TO BECOME PERMANENT.  TEXTRA will
  625.    prompt if a file is about to be closed with unsaved changes to the
  626.    MARKS list.
  627.  
  628. 9.2 Textra provides 3 menu items to access the MARKS facility (see 
  629. 10.5.7, 10.5.8 and 10.5.9), two of which have keyboard equivalents.  
  630. Also, 3 ARexx commands have been added to mirror the menu interface 
  631. (see docs/RexxCommand.doc).
  632.  
  633. 9.3 Textra saves all of the MARKS information for the associated text 
  634. file in a 'shadow' file in the same directory.  Additionally, if margins
  635. are activated for the file (section 10.4.10), the formatting information 
  636. is also stored in the shadow file.
  637.  
  638. This 'distant cousin' will be given the same name as the original text 
  639. file, except that a '}' character will be placed before it.  (This 
  640. arrangement causes the '}file' to appear last in dir listings, etc.).  
  641. For example, if your term paper is called...
  642.  
  643.       term.doc
  644.  
  645. ...Textra will name the shadow file...
  646.  
  647.       }term.doc
  648.  
  649. (There is an initial 8 byte overhead for the file setup, and each mark 
  650. adds 48 bytes, so the minimum shadow file size is 56 bytes.  Shadow 
  651. files tend to be MUCH smaller than their associated text file).
  652.  
  653. 9.4 There are a few special considerations when using MARK-ed files...
  654.  
  655. 9.4.1 Note that if you copy a MARK-ed file to another place, you 
  656. should also copy the }filename file if you wish the marks information 
  657. to be preserved in the new location.
  658.  
  659. 9.4.2 Because Textra will add a character to the filename, marks 
  660. cannot be saved for files if their name is the full 31-character 
  661. AmigaDOS limit in length.  30-character filenames and less will work 
  662. fine.
  663.  
  664. ---------------------------------------------------------------------------
  665.  
  666.  
  667. 10. TEXTRA MENUS
  668.  
  669. 10.1 Four menus are available and present themselves when the RIGHT
  670. MENU BUTTON is depressed and held.  Some menu items may also
  671. be activated by simultaneously pressing the RIGHT AMIGA key
  672. and the one that is specified in the menu item text.  When the HELP
  673. key is pressed (section 4.7), a list of such menu "key equivalents" 
  674. is included.
  675.  
  676. 10.2 The "Project" Menu
  677.  
  678. 10.2.1 OPEN FILE... opens a new window with a full file-selector 
  679. requester and buttons that allow quick access to the top 8 disk 
  680. devices (like DF0:).  The "Edit, Editing Preferences..." requester 
  681. (section 10.4.9) allows selection of either the installed ASL file 
  682. requester, or an internal one (which is used if ASL is not available).  
  683. The PARENT button changes the current directory to the level above the 
  684. one being displayed.  The KEYBOARD button presents the user with a 
  685. string requester into which a file or directory specification may be 
  686. typed.  The CANCEL button exits the requester with no other action 
  687. while the OK button enters the file or directory selected in the list 
  688. box (the same as CANCEL if nothing is selected).  Double-clicking one 
  689. of the names performs the same action as the OK button.
  690.  
  691. 10.2.2 OPEN BY NAME... opens a new window, then presents a string
  692. requester for specifying the filename from the keyboard, bypassing
  693. the directory scan for the list of names (which can take time on
  694. large directories, especially on floppy drives).  The current 
  695. directory of the requester is that of the spawning window.  If a 
  696. pathname is typed into this requester, the "OPEN FILE" selector 
  697. requester is opened, presenting a list of the files in that directory.
  698.  
  699. 10.2.3 OPEN NEW FILE opens a window without specifying a filename; the
  700. default name "Untitled" is assigned, at the directory level of
  701. the spawning window.  (No actual disk file will be written until
  702. the SAVE AS... function is invoked.)
  703.  
  704. 10.2.4 INSERT FILE... presents a file requester, again observing user 
  705. preferences to use either the ASL requester or the internal TEXTRA 
  706. file-requester allowing selection of a file to INSERT at the current 
  707. cursor location (as though the entire file were typed in).  Any select 
  708. range will be deleted prior to the insertion.
  709.  
  710. 10.2.5 REVERT TO SAVED causes the read-in version of the selected
  711. file to be discarded, replaced by the version that was last-saved
  712. to disk.  A verification requester is presented to make sure this
  713. is not done accidently.
  714.  
  715. 10.2.6 SAVE FILE causes the currently-selected file to be written to
  716. disk, if modified.  If the file has not been changed (no '*' before
  717. the title), this menu item is disabled.
  718.  
  719. Before you SAVE a file over an existing disk file, Textra performs 
  720. a check that the size of the disk file is the same as it was when the 
  721. file was read in by Textra.  If the size is different, the user is 
  722. notified and given the option to CANCEL the SAVE.  Note that this 
  723. behavior does NOT apply to the SAVE AS menu pick (10.2.7), nor 
  724. commands issue from the ARexx interface which overwrite a file on disk 
  725. (for example, SAVEAS "*").
  726.  
  727. 10.2.7 SAVE FILE AS... allows saving the currently selected file under 
  728. a different name.  After this operation, the title bar will contain 
  729. the new name, and it will have been created on disk.  If the specified 
  730. file already exists, the user is warned and given a chance to abort.  
  731. If a directory name is entered (or no name at all), the SAVE AS... 
  732. file requester is presented.  The FILE SAVE AS... requester contains a 
  733. unique feature... in the lower-left corner is a checkbox permitting 
  734. one to elect to save the file in MSDOS text format.
  735.  
  736. 10.2.8 SAVE ALL FILES causes all files that have been modified and not
  737. saved to be written to disk.  If there are no modified files, this
  738. menu item is disabled.
  739.  
  740. 10.2.9 CLOSE FILE will check if the file has been modified but not
  741. saved and warn the user if so.  Note that closing TEXTRA's last window
  742. will cause it to exit; a requester will notify you if you are closing
  743. the last window and give you the chance to abort.  After the window
  744. has closed, TEXTRA will select and front another TEXTRA window if any
  745. remain.  Right-Amiga-W is a keyboard menu-equivalent for the CLOSE
  746. FILE menu item.
  747.  
  748. 10.2.10 PRINT FILE prints (to the printer.device) the currently 
  749. selected window using the current preference settings (section 
  750. 10.2.12).  While a print job is in progress, other windows may be 
  751. edited or have ARexx scripts executed in them, but not printed.  Print 
  752. jobs may be cancelled at any time by using the CANCEL button on the 
  753. printing requester.  (Any delay experienced is the amount of time it 
  754. takes your printer to respond to the RESET command).  Since the printing
  755. window is "locked", TEXTRA will ask if you want to open  another if 
  756. there is only one open, .
  757.  
  758. 10.2.11 PRINT SELECTED LINES prints any and all lines, in their 
  759. entirity, if any part of it is currently selected.  The current 
  760. preference settings (section 10.2.12) are observed.  The same 'print 
  761. job' behavior described in section 10.2.10 applies.
  762.  
  763. 10.2.12 PRINTING PREFERENCES... presents a dialog to allow the user to
  764. enable/disable the following print job behavior...
  765.  
  766.   1). Print a one-line page header at the top of each page noting the 
  767.       date, filename and page number.
  768.   2). Print sequential line numbers at the beginning of each line.
  769.   3). Skip over perforated page boundries of fanfold paper.
  770.   4). Eject the page (form-feed) after printing an entire file (10.2.10)
  771.   5). Eject the page (form-feed) after printing selected lines (10.2.11)
  772.  
  773. Note that TEXTRA also observes the system 'Preferences' settings.  A 
  774. 'SYSTEM' button is provided at the top of the requester which will 
  775. open your printer preferences tool.  If the System Preferences do not 
  776. come up, make sure they have not been moved from where originally
  777. installed.
  778.  
  779. The USE button causes the currently displayed settings to go into 
  780. effect.  The USE+SAVE button also saves the current settings in the 
  781. Textra Preferences file (section 11.5).  The CANCEL button causes any 
  782. currently changed settings to be discarded.  If the PRINT PREFERENCES 
  783. requester is active, this menu item is disabled from other windows.
  784.  
  785. 10.2.13 ABOUT TEXTRA provides the author's address and describes
  786. distribution information.  Also, if the TEXTRA is registered, the name
  787. and address of the registeree is displayed in this requester.
  788.  
  789. 10.2.14 QUIT will exit TEXTRA, closing all files in the process.  All
  790. files that have been modified but not saved will issue a notification
  791. requester, providing the opportunity to save at that time.  Right-
  792. Amiga-Q is the keyboard menu-equivalent for the QUIT menu item.
  793.  
  794. 10.3 The "Windows" Menu
  795.  
  796. 10.3.1 The Windows menu is dynamic, i.e. it's content changes as you 
  797. open or close files.  One item exists in the "WINDOWS" menu for each 
  798. open file, the menu item text being the same as the title bar for the 
  799. associated window.  Selecting an item makes it the current window, if 
  800. not already.
  801.  
  802. 10.3.2 Additionally, the text will include a "*" character before the
  803. filename if the file has been modified since but not saved to disk.
  804. A checkmark preceeds the item representing the current file.
  805.  
  806. 10.4 The "Edit" Menu
  807.  
  808. 10.4.1 UNDO reverts all changes since the cursor was last 
  809. re-positioned.
  810.  
  811. 10.4.2 CUT removes the selected range of characters from the 
  812. currently-selected file, but saves them in the Amiga Clipboard Device 
  813. (unit 0).  The previous contents of the clipboard are lost.  If there 
  814. is no select range, this menu item is disabled.
  815.  
  816. 10.4.3 COPY moves the selected range of characters of the 
  817. currently-selected file to the Amiga Clipboard Device (unit 0), but 
  818. does not remove them from the file.  The previous contents of the 
  819. Amiga Clipboard Device (unit 0) are lost.  If there is no select 
  820. range, this menu item is disabled.
  821.  
  822. 10.4.4 PASTE inserts whatever is in the Amiga Clipboard Device (unit 
  823. 0) into the currently-selected file, at the current cursor location.  
  824. If a select range is active in this file, it is deleted before the 
  825. insertion takes place.  There is no effect on the contents of the 
  826. Amiga Clipboard Device.
  827.  
  828. 10.4.4.1 To perform a Columnar Paste, hold down the ALT key when you 
  829. pull down the "Edit, Paste" menu item to have Textra execute a paste 
  830. in columnar fashion.  (In other words, Textra will begin the paste at 
  831. the same column on each line.)  Currently, the menu item and ALT key
  832. form the only interface to the columnar paste function.
  833.       
  834. 10.4.5 FIND presents a sub-menu with 2 choices:
  835.  
  836. 10.4.5.1 STRING... presents a requester prompting for the string to 
  837. search for, ignoring character case.  Normally, the string gadget will 
  838. contain the previous string searched for (empty if none).  However, if 
  839. a range of characters is selected that is ALL ON ONE LINE, it will 
  840. supercede any previously-searched-for string as the default for the 
  841. string gadget.  The search begins just past the current cursor 
  842. location or selected range of characters.
  843.  
  844. 10.4.5.1.1 WRAP... On the FIND STRING requester is a checkbox that
  845. allows you to enable "wrap-around" search.  Normally, if the search
  846. string is not found, TEXTRA terminates the search at the end of the
  847. document.  With the "wrap" box checked, the search will continue from
  848. line 1, and end when either the text is found, or the starting line
  849. is reached.  This mode also applies to the "FIND NEXT OCCURENCE" menu
  850. item (section 10.4.5.2).
  851.  
  852. 10.4.5.1.2 REVERSE... On the FIND STRING requester is a checkbox that
  853. permits Reverse-searching to be enabled.  As long as this checkbox
  854. is enabled, searching will be conducted backwards through the file.
  855.  
  856. 10.4.5.2 NEXT OCCURENCE conducts another case-insensitive search for 
  857. the same text string that had previously been searched for.  If no 
  858. search had yet been conducted, an "ENTER STRING..." requester is 
  859. presented.
  860.  
  861. 10.4.6 REPLACE presents a sub-menu with 2 choices:
  862.  
  863. 10.4.6.1 STRING... presents a double-string-requester, prompting for
  864. both the string to conduct a case-insensitive search for and a
  865. string to replace the it with.  The RETURN key will
  866. toggle the selected string gadget.  The user may optionally:
  867.  
  868.   1). replace just the next one found (via the "ONCE" button)
  869.  
  870.   2). replace all instances of the found string (with the "ALL" 
  871.       button)
  872.   
  873.   3). just search for the next occurence of the text that would be
  874.       replaced (don't replace it).
  875.  
  876.   4). abort (via "CANCEL").
  877.  
  878. The search begins just past the current cursor location
  879. or selected range of characters.
  880.  
  881. 10.4.6.2 NEXT OCCURENCE conducts another "REPLACE" operation, using the
  882. same strings that were used last time.  If none exist, the "STRING..."
  883. requester is presented.
  884.  
  885. 10.4.6.3 THEN FIND allows the user to decide which instances of
  886. the specific text will be REPLACEd, and which will not.  This feature
  887. is usually used thusly:
  888.  
  889.   1). Bring up the REPLACE STRING Requester (via menu or 
  890.       Right-Amiga-R).
  891.   
  892.   2). Enter the appropriate strings in the 2 string gadgets.
  893.   
  894.   3). Click on the SEARCH button.  The first instance of the "Search 
  895.       for:" text will be located and highlighted (text must occur 
  896.       AFTER the cursor in the file, so if you want the entire file 
  897.       checked, put the cursor at the beginning of the document).
  898.   
  899.   4). If you want to REPLACE the highlighted text, press 
  900.       Right-Amiga-Y.  If not, Right-Amiga-N.  (like Yes and No)
  901.   
  902.   5). The editor will respond accordingly, then locate the next instance 
  903.       of the text.
  904.  
  905. 10.4.7 CASE presents a sub-menu with 3 choices:
  906.  
  907. 10.4.7.1 LOWER exhibits 2 behaviors depending on whether an area
  908. is selected or not.  If there is, the entire selected area is converted
  909. to lower case.  If not, the next word after the cursor is searched for
  910. and converted to lower case if found. 
  911.  
  912. 10.4.7.2 UPPER exhibits 2 behaviors depending on whether an area
  913. is selected or not.  If there is, the entire selected area is converted
  914. to upper case.  If not, the next word after the cursor is searched for
  915. and converted to upper case if found. 
  916.  
  917. 10.4.7.3 CAPITALIZE exhibits 2 behaviors depending on whether an area
  918. is selected or not.  If there is, each word in the selected area is
  919. located and capitalized.  If not, the next word after the cursor is
  920. located and capitalized. 
  921.  
  922. 10.4.8 GO TO LINE... presents a string requester prompting for the
  923. desired line number, with the initial string gadget contents being
  924. equal to the current cursor line (or the beginning of any selected
  925. range).  First line of file is considered line 1.
  926.  
  927. 10.4.9 EDITING PREFERENCES... presents a requester allowing configuration
  928. of:
  929.  
  930.   1). "Auto-Indent" mode (section 4.2.1)
  931.   
  932.   2). "Auto-BackSpace" mode (section 4.3.1)
  933.   
  934.   3). Display Status Line or not (section 7.2.1)
  935.   
  936.   4). Use ASL file requester or internal (section 11.4)
  937.   
  938.   5). TAB WIDTH value (section 4.5)
  939.   
  940.   6). AlphaNumeric OR Non-Whitespace double-click highlighting
  941.       (section 5.2)
  942.  
  943.   7). Operation of the F1 Window Size Toggle function key.
  944.       (section 7.5).
  945.  
  946. The USE button causes the currently displayed settings to go into effect.
  947. The USE+SAVE button performs the USE function, and also saves the current
  948. settings in the Textra Preferences file (section 11.5).  The CANCEL button
  949. causes any currently displayed settings (that have been changed), to be
  950. discarded.  If the EDITING PREFERENCES requester is active, this menu item
  951. is disabled from other windows.  (Right-Amiga-E is a keyboard equivalent
  952. for this menu item.)
  953.  
  954. 10.4.10 ACTIVATE MARGINS... is enabled if the currently open window
  955. is a simple text window.  It is used to enter Textra's auto-formatting
  956. "margin" mode.  A separate document, "Using Margins", is provided in the
  957. Textra package; please refer there for additional information.
  958.  
  959. 10.5  The "Utilities" Menu
  960.  
  961. 10.5.1  FILE PROTECTIONS... provides the ability to set 6 relevant
  962. file protection bits that are stored and processed by AmigaDOS.  These
  963. include Deletable, Executable, Writable, Readable, Archived and Script
  964. (particularly handy when writing AmigaDOS scripts).  The SAVE button
  965. causes the currently displayed settings to become active for the file 
  966. on disk.  A CANCEL button is provided.
  967.  
  968. 10.5.2  WRITE-PROTECT/ENABLE WINDOW... This is a dual-purpose 
  969. menu-item; it toggles in text and function each time it is used.  When 
  970. used, it alternately write-protects or write-enables the currently 
  971. selected window.  The normal Textra editing/Arexx mode is considered
  972. write-enabled.  Also, there are two ARexx commands that allow scripts 
  973. and external programs to control this state.
  974.  
  975. When a window is write-protected, a '-' character appears in the 
  976. window title bar (much as the '*' character to indicate a changed 
  977. file).  A window which contains changes cannot be write-protected; it 
  978. must be saved first.
  979.       
  980. Note that while write-protected, functions which change window textual 
  981. content are not accessible.  This includes Insert-file, Undo, Cut, 
  982. Paste, Replace, the Case-changing functions, File protections, ARexx 
  983. (the only ARexx command that will work is WRITEENABLE), Mark Selected 
  984. Text and Delete mark.  Similarly, the keyboard cannot be used to 
  985. insert text.  One CAN still select text, copy text from the window, 
  986. print the window, etc.
  987.  
  988. 10.5.3  HELP ON KEYBOARD... performs the same action as the HELP key
  989. (section 4.7).
  990.  
  991. 10.5.4  AREXX... presents a requester affording access to the Textra-
  992. ARexx Interface.  See section 8 for more information.
  993.  
  994. 10.5.5  SET WINDOW FONT... allow the user to change or find the name 
  995. of the currently selected window's font.  This function requires the 
  996. asl.library.  The selection is completely independant of the selected 
  997. font used for Newly-Opened Windows (10.5.6).
  998.  
  999. 10.5.6  FONT PREFERENCES... presents those aspects of the font display 
  1000. facility which provide save-able configuration parameters.  This 
  1001. version only has one; the selection of which font will be used 
  1002. for all subsequent newly- opened windows.  The consistant USE, 
  1003. USE+SAVE, CANCEL interface of the other TEXTRA preferences dialog is 
  1004. preserved.
  1005.  
  1006. 10.5.7  MARK SELECTED TEXT... becomes active when anything is 
  1007. selected.  Presents a requester prompting for the name under which to 
  1008. MARK the text selection under.  The program will prompt for 
  1009. verification if a name redefinition is attempted.
  1010.  
  1011.                          NOTE:
  1012.                          
  1013.    IF YOU ADD MARKS TO A FILE, YOU MUST "SAVE..." OR "SAVE 
  1014.    AS..." FOR THE CHANGES TO BECOME PERMANENT.
  1015.  
  1016. 10.5.8  GO TO MARK... active when any Marks have been defined in the 
  1017. current file.  It presents a scrolling list gadget allowing selection 
  1018. of the MARK to display.
  1019.       
  1020. 10.5.9  DELETE MARK... active when any Marks have been defined in the 
  1021. current file.  It presents a scrolling list gadget allowing selection 
  1022. of the MARK to delete.
  1023.  
  1024.    IF YOU DELETE MARKS FROM A FILE, YOU MUST "SAVE..." OR "SAVE 
  1025.    AS..." FOR THE CHANGES TO BECOME PERMANENT.
  1026.  
  1027. ---------------------------------------------------------------------------
  1028.  
  1029.  
  1030. 11. TEXTRA GENERAL INFORMATION
  1031.  
  1032. 11.1 TEXTRA always fully expands a specified file or directory name
  1033. and uses that form to again find the file, if necessary.  For example,
  1034. you may have typed in "DF1:MyFile" as the filename, but the window
  1035. title will substitute the name of the volume, possibly "MyDisk:MyFile".
  1036. This is almost always desirable, because if TEXTRA saved "DF1:", you
  1037. might unknowingly save it to the wrong disk, just because you switched
  1038. the disk in that drive.  TEXTRA will ask you specifically for the same
  1039. name.
  1040.    The only situation you should be aware of is WHEN YOU HAVE TWO
  1041. DISKS OF THE SAME NAME in your system.  In this case, AmigaDOS can
  1042. sometimes choose the wrong disk when TEXTRA passes the full-pathname
  1043. to it.
  1044.   In the above example, we could save it to the wrong disk if the disk
  1045. in DF0: is also named "MyDisk:" (a backup, perhaps???).  This is not
  1046. caused by TEXTRA, but can happen anytime in AmigaDOS that you use the
  1047. full-pathname to specify a file.
  1048.  
  1049. 11.2 Intuition provides two String Gadget shortcuts that can be useful 
  1050. to the TEXTRA user.  TEXTRA string gadgets that provide a default text 
  1051. string when they appear will revert back to this string whenever 
  1052. "Right Amiga-Q" is pressed.  The "Right Amiga-X" combination will 
  1053. clear any displayed string.
  1054.  
  1055. 11.3 For most string gadgets, the RETURN key will perform the same 
  1056. action  as the "OK" button.  One exception is the "REPLACE" 
  1057. double-string requester, where the RETURN key toggles between the two 
  1058. string gadgets.
  1059.  
  1060. 11.4 TEXTRA Requesters are attached to (drawn in) the window that they 
  1061. have been spawned from.  The advantage is that multiple requesters are 
  1062. possible...you can select and work in another file even if the 
  1063. previous window is waiting for you to answer a question.  Every window 
  1064. can, in fact, have one or more open requesters.  Note that a TEXTRA 
  1065. window will automatically increase in size to accomodate a given 
  1066. requester, and will return to its original position/size when the 
  1067. requester is closed.
  1068.  
  1069. 11.4.1 Textra makes special use of the asl library, if found.  It will 
  1070. use the asl font requester to allow selection of font modes (section 
  1071. 7.7).  Textra will also use the asl file requester and even allow you 
  1072. to choose between it and a Textra native file requester.  Besides 
  1073. the obvious functional differences, there is a subtle but possibly 
  1074. important way in which the editor behaves when each file requester is 
  1075. presented:
  1076.  
  1077. 11.4.2 Because of the manner in which the asl library works, Textra is 
  1078. "blocked" when an asl requester is presented.  The editor is "frozen" 
  1079. (even print jobs and background ARexx script operation will pause) 
  1080. until the asl requester is closed.  One may optionally elect to NOT 
  1081. use the asl file requester via the Edit Preferences (section 10.4.9).  
  1082. Doing so will activate the use of the internal Textra file requester.  
  1083. (Textra does not contain an internal font requester).
  1084.  
  1085. By default, Textra uses the Asl file and font requesters.  If the 
  1086. asl.library is not available, the Textra internal file requester is 
  1087. used and cannot be changed and no font requesters are available.
  1088.  
  1089. 11.5 TEXTRA maintains certain user-settable parameters in the file 
  1090. "devs:Textra.prefs".  If your system disk is of the floppy variety, 
  1091. you may therefore be asked to insert this disk if you elect to save 
  1092. it.  Normally, TEXTRA looks for this file only once, at startup.
  1093.  
  1094. 11.6 TEXTRA performs certain operations when reading in a file from 
  1095. disk...
  1096.  
  1097. 11.6.1  OS2.1 introduced CrossDOS as a standard AmigaDOS feature, 
  1098. providing access to the MSDOS file-system.  Even prior to 2.1, that 
  1099. capability was available in a prolifera of products, including the 
  1100. commercial version of CrossDOS.  TEXTRA 1.15+ will successfully read 
  1101. and write such files automatically.  If desired, the user may change 
  1102. between the two formats via the SAVE FILE AS... menu item (section 
  1103. 10.2.7).
  1104.  
  1105. 11.6.2 Whenever TEXTRA reads in a file, it examines the first 32 
  1106. characters in an effort to evaluate the file's "text-ness".  If TEXTRA 
  1107. thinks it may not be a text file, it will give you the opportunity to 
  1108. abort and read in another file.
  1109.  
  1110. 11.7  As of V1.15, Textra is low-memory-failure-proof! ANY MEMORY 
  1111. REQUEST FAILURE WILL FLASH THE SCREEN 3 TIMES in 1 second, then wait 
  1112. until the memory comes available.  The editor is "frozen" until then, 
  1113. but will resume operation when the request succeeds.  The intention is 
  1114. to give the user a chance to close the terminal program or paint 
  1115. program that they left running in the background.  Note that this 
  1116. aplies only to memory allocations made by TEXTRA itself and Textra CAN 
  1117. fail to open a window, for example (it is Intuition which allocates 
  1118. that memory.  ARexx shares similar responsibilities), but possible 
  1119. failures are checked for.
  1120.    
  1121. 11.8 Keyboard Summary:
  1122.  
  1123.     F1 - Window Size Toggle (7.4)
  1124.     F2 - Keyboard Filter Defeat (4.6)
  1125.     F3 - Page to Cursor or Beginning of Select Range (3.4)
  1126.     F4 - Display next page (6.4)
  1127.     F5 - Display previous page (6.4)
  1128.     F6 - Present previous file (7.6)
  1129.     F7 - AREXX string (10.5.4)
  1130.     F8 -   "      "      "
  1131.     F9 -   "      "      "
  1132.     F10-   "      "      "
  1133.  
  1134.     Help - Displays this information (Keyboard Summary)
  1135.     
  1136.     Shift-Left-arrow  - Cursor to beginning of current line (3.2)
  1137.     Shift-Right-arrow - Cursor to end of current line (3.2)
  1138.     Shift-Up-arrow    - Display previous page, cursor to middle (6.4)
  1139.     Shift-Down-arrow  - Display next page, cursor to middle (6.4)
  1140.  
  1141.     Right-Amiga-O - Open existing file via file requester (10.2.1)
  1142.     Right-Amiga-P - Open existing file by typing its name (10.2.2)
  1143.     Right-Amiga-[ - Open a new file (10.2.3)
  1144.     Right-Amiga-S - Save the current file (10.2.6)
  1145.     Right-Amiga-W - Closes the current window (10.2.9)
  1146.     Right-Amiga-Q - Quits Textra (10.2.14)
  1147.     Right-Amiga-Z - Undo (10.4.1)
  1148.     Right-Amiga-X - Cut selected text, save in clipboard (10.4.2)
  1149.     Right-Amiga-C - Copy selected text into clipboard (10.4.3)
  1150.     Right-Amiga-V - Paste clipboard into file (10.4.4)
  1151.     Right-Amiga-F - Find string in any case (10.4.5.1)
  1152.     Right-Amiga-N - Find the next occurance of same string (10.4.5.2)
  1153.     Right-Amiga-R - Replace string with another (10.4.6.1)
  1154.     Right-Amiga-T - Find & replace same string again (10.4.6.2)
  1155.     Right-Amiga-L - Set text or next word to lower case (10.4.7.1)
  1156.     Right-Amiga-U - Set text or next word to upper case (10.4.7.2)
  1157.     Right-Amiga-K - Capitalize words or next word (10.4.7.3)
  1158.     Right-Amiga-G - Go to a specific line (10.4.8)
  1159.     Right-Amiga-E - Display the Editing Preferences requester (10.4.9)
  1160.     Right-Amiga-- - Write Protect/Enable window (x.x.x)
  1161.     Right-Amiga-/ - Select/enter/execute a Textra-Arexx script (x.x.x)
  1162.     Right-Amiga-M - Mark Selected Text (10.5.7)
  1163.     Right-Amiga-, - Go To Mark (10.5.8)
  1164.     
  1165.     Requester control...
  1166.     
  1167.     Right-Amiga-X - Clear text in string requester (11.2)
  1168.     Right-Amiga-Q - Restore original string requester text (11.2)
  1169.